<template>
     <div>
    <a :href="myurl" @click="myClick($event)">
    <img src='/image/userservice.png' width='100%'/>
    </a>
    </div>
</template>

<script>
import Cookies from 'js-cookie';
export default {
  props: ["prevent"],
		data() {
			return {
			  myurl:this.$front.FrontUrl+'/xuejing/my/'+Cookies.get('frontdomainname')
			}
		},
		mounted(){
			console.log(this.$front.FrontUrl+'/xuejing/my/'+Cookies.get('frontdomainname'))
		},
		methods:{
			myClick(e){
				//不阻止事件行为
				if(this.prevent){
				//阻止事件行为
				e.preventDefault();
                return;
			    }
			}
		}
    }
</script>